package com.example.demo.shiro.filter;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author zhaiding
 * @since 2019/5/19
 */
public class JwtToken implements AuthenticationToken {

    private static final long serialVersionUID = 2813457600810728964L;

    /**
     * 用户登录后获取的令牌
     */
    private String token;

    public JwtToken() {
    }

    JwtToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
